include( "shared.lua" )

 function set_team()

 frame = vgui.Create( "DFrame" )
 frame:SetPos( 100, ScrH() / 2 )
 frame:SetSize( 370, 235 )
 frame:SetTitle( "Change Team" )
 frame:SetVisible( true )
 frame:SetDraggable( true )
 frame:ShowCloseButton( true )
 frame:MakePopup()

 team_1 = vgui.Create( "DButton", frame )
 team_1:SetPos( 30, 30 )
 team_1:SetSize( 100, 50 )
 team_1:SetText( "Minges" )
 team_1.DoClick = function()

     RunConsoleCommand( "team_1" )

 end

 team_2 = vgui.Create( "DButton", frame )
 team_2:SetPos( 30, 85 )
 team_2:SetSize( 100, 50 )
 team_2:SetText( "Non-Minges" )
 team_2.DoClick = function()

     RunConsoleCommand( "team_2" )

 end

 team_3 = vgui.Create( "DButton", frame )
 team_3:SetPos( 30, 140 )
 team_3:SetSize( 100, 50 )
 team_3:SetText( "Semi-Admins" )
 team_3.DoClick = function()

	RunConsoleCommand( "team_3" )

 end

 team_4 = vgui.Create( "DButton", frame )
 team_4:SetPos( 140, 30 )
 team_4:SetSize( 100, 50 )
 team_4:SetText( "Dick-Heads" )
 team_4.DoClick = function()

	RunConsoleCommand( "team_4" )

 end

 team_5 = vgui.Create( "DButton", frame )
 team_5:SetPos( 140, 85 )
 team_5:SetSize( 100, 50 )
 team_5:SetText( "Admins" )
 team_5.DoClick = function()

	RunConsoleCommand( "team_5" )

 end

 team_6 = vgui.Create( "DButton", frame )
 team_6:SetPos( 140, 140 )
 team_6:SetSize( 100, 50 )
 team_6:SetText( "Snipers" )
 team_6.DoClick = function()

	RunConsoleCommand( "team_6" )

 end

 team_7 = vgui.Create( "DButton", frame )
 team_7:SetPos( 250, 30 )
 team_7:SetSize( 100, 50 )
 team_7:SetText( "Uber-Minges" )
 team_7.DoClick = function()

	RunConsoleCommand( "team_7" )

 end


 end

 concommand.Add( "team_menu", set_team )

